<div class="all-nav">
    <div class="w1210">
        <div class="home-category fl">
            <a href="#" class="menu-event" title="查看全部商品分类">全部商品分类<i></i></a>
            <div class="expand-menu all-cat main-bg-color">

                <foreach item="v" name="category">
                    <div class="list">
                        <dl class="cat">
                            <dt class="cat-name"> <a href="{:HOME_URL}/Cate/tdd{$v['cat_id']}" target="_blank" title="{$v['cat_name']}">{$v['cat_name']}</a> </dt>
                            <i>&gt;</i>
                        </dl>
                        <div class="categorys">
                            <div class="item-left fl">

                                <div class="item-channels">
                                    <div class="channels">
                                        <a href="#" target="_blank" title="休闲食品">休闲食品<i>&gt;</i></a>
                                    </div>
                                </div>

                                <div class="item-channels">
                                    <div class="channels">
                                        <a href="#" target="_blank" title="进口食品">进口食品<i>&gt;</i></a>
                                    </div>
                                </div>

                                <div class="item-channels">
                                    <div class="channels">
                                        <a href="#" target="_blank" title="饮料冲调">饮料冲调<i>&gt;</i></a>
                                    </div>
                                </div>

                                <div class="subitems">
                                    <foreach item="b" name="v['class2']">
                                        <dl class="fore1">
                                            <dt> <a href="{:HOME_URL}/Cate/tdd{$b['cat_id']}" target="_blank" title="{$b['cat_name']}">{$b['cat_name']}<i>&gt;</i></a> </dt>
                                            <dd>
                                                <foreach item="n" name="b['class3']">
                                                    <a href="{:HOME_URL}/Cate/tdd{$n['cat_id']}" target="_blank" title="{$n['cat_name']}">{$n['cat_name']}</a>
                                                </foreach>
                                            </dd>
                                        </dl>
                                    </foreach>
                                </div>
                            </div>
<!--                            <div class="item-right fr">-->
<!--                                <div class="item-brands">-->
<!--                                    <div class="brands-inner">-->
<!--                                        <a href="#" class="img-link" target="_blank" title="咕噜噜"> <img src="data/brandlogo/" width="90" height="36"></a>-->
<!--                                    </div>-->
<!--                                </div>-->
<!---->
<!--                            </div>-->
                        </div>
                    </div>
                </foreach>
            </div>
        </div>
        <div class="allnav fl" id="nav">
            <ul>
                <li>
                    <a class="nav current" href="{:HOME_URL}" title="首页">首页</a>
                </li>
                <foreach name="middle_navigation" item="v">
                    <li>
                        <if condition="($v['nav_new_open'])">
                            <a class="nav " href="{$v['nav_url']}" title="{$v['nav_title']}" target="_blank" >{$v['nav_title']}</a>
                        <else />
                            <a class="nav " href="{$v['nav_url']}" title="{$v['nav_title']}" >{$v['nav_title']}</a>
                        </if>
                    </li>
                </foreach>
            </ul>
        </div>
    </div>
</div>
<script>
//分类显示隐藏
$(".home-category").hover(function () {
$(this).addClass("hover");
}, function () {
$(this).removeClass("hover");
})
$(".home-category .list").hover(function () {
$(this).find(".categorys").show();
}, function () {
$(this).find(".categorys").hide();
});
</script>